/**
 * Created by SZ on 2018/05/23.
 */
 const mongoose = require('mongoose');
 const Schema = mongoose.Schema;
 
 //学生表
 const StudentSchema = new Schema({
     //姓名
     name: String,
     //学号
     code: String,
     //手机
     mobile: String,
     //邮件
     email: String,
     //描述
     description: String
 }, {collection: 'students'});
 
 const Student = mongoose.model('Student', StudentSchema);
 module.exports = Student;